using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;

namespace secret_server.Models
{
    public class World
    {
        public Guid Id { get; set; }

        [Required]
        public string Title { get; set; }

        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime StartDate { get; set; }

        public byte[] Background { get; set; }


        public virtual IEnumerable<Character> Characters { get; set; }
    }
}
